﻿<Window
  xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" 
  xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" 
  xmlns:d="http://schemas.microsoft.com/expression/blend/2008" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
  x:Class="ErrorWindow" 
  Title="Error/Event" WindowStartupLocation="CenterScreen" 
  Width="424" Height="294" mc:Ignorable="d">

  <Grid x:Name="LayoutRoot" Width="400">
    <Grid.RowDefinitions>
      <RowDefinition Height="Auto"/>
      <RowDefinition Height="Auto"/>
      <RowDefinition/>
      <RowDefinition Height="Auto" MinHeight="33"/>
    </Grid.RowDefinitions>

    <TextBlock x:Name="IntroductoryText" Grid.Row="0" Margin="0" 
               Text="An event was encountered. Please contact your administrator for more information." Width="398" TextWrapping="Wrap" HorizontalAlignment="Left"/>

    <StackPanel x:Name="ContentStackPanel" Grid.Row="2" Margin="0,6,8,31">

      <TextBlock x:Name="LabelText" TextWrapping="Wrap" Margin="0,0,0,2" 
                       Text="Event text" FontWeight="Bold"/>
      <TextBox x:Name="MsgTextBox" Height="65" TextWrapping="Wrap" IsReadOnly="True"
                     VerticalScrollBarVisibility="Auto"/>
      <TextBlock x:Name="LabelEx" TextWrapping="Wrap" Margin="0,0,0,2" 
                       Text="Event details" FontWeight="Bold"/>
            <TextBox x:Name="ErrorTextBox" Height="65" TextWrapping="Wrap" IsReadOnly="True"
                     VerticalScrollBarVisibility="Auto"/>
     </StackPanel>

    <Button x:Name="OKButton" Grid.Row="3" Click="OKButton_Click" 
            Width="75" Height="23" HorizontalAlignment="Right" Margin="0,-7,8,0" 
            TabIndex="0" Content="OK" VerticalAlignment="Top" d:LayoutOverrides="Height"/>

  </Grid>

</Window>